const baseUrl = 'http://118.24.136.157:8092/api/';
function request(url,data=null,type = 'get'){
    return new Promise(function(resolve,reaject){
        jQuery.ajax({
            url:baseUrl + url,
            type,
            data,
            headers:{'token':'3,a'},
            success(res){
              resolve(res)
            }
        })
    })
}